<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TSlideIndicator类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_slide_indicator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TSlideIndicator类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<div class="dynheader">
类 TSlideIndicator 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_t_slide_indicator.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a97465f2f03f4d93c3013e92754f859a1"><td class="memItemLeft" align="right" valign="top"><a id="a97465f2f03f4d93c3013e92754f859a1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSlideIndicator</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:a97465f2f03f4d93c3013e92754f859a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d51da27954f9d8c3e089954e88151bf"><td class="memItemLeft" align="right" valign="top"><a id="a2d51da27954f9d8c3e089954e88151bf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TSlideIndicator</b> (const slide_indicator_t *nativeObj)</td></tr>
<tr class="separator:a2d51da27954f9d8c3e089954e88151bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4de03b7ea656a0f725a0925202dc4dd8"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a4de03b7ea656a0f725a0925202dc4dd8">SetValue</a> (uint32_t value)</td></tr>
<tr class="separator:a4de03b7ea656a0f725a0925202dc4dd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2baf5eb52b7fd56168ab40d811d7180d"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a2baf5eb52b7fd56168ab40d811d7180d">SetMax</a> (uint32_t max)</td></tr>
<tr class="separator:a2baf5eb52b7fd56168ab40d811d7180d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab99815b7d41d04095a77af7218a8c83c"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#ab99815b7d41d04095a77af7218a8c83c">SetDefaultPaint</a> (indicator_default_paint_t default_paint)</td></tr>
<tr class="separator:ab99815b7d41d04095a77af7218a8c83c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a540384bf6fa666c0c34f7cd0048763a2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a540384bf6fa666c0c34f7cd0048763a2">SetAutoHide</a> (uint16_t auto_hide)</td></tr>
<tr class="separator:a540384bf6fa666c0c34f7cd0048763a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24936855ee6566548705893f3b8a649b"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a24936855ee6566548705893f3b8a649b">SetMargin</a> (int32_t margin)</td></tr>
<tr class="separator:a24936855ee6566548705893f3b8a649b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90a115cc8452e2d1e15c16850048d346"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a90a115cc8452e2d1e15c16850048d346">SetSpacing</a> (float_t spacing)</td></tr>
<tr class="separator:a90a115cc8452e2d1e15c16850048d346"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94fdaa660b2939675dcb2d3706ce3b23"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a94fdaa660b2939675dcb2d3706ce3b23">SetSize</a> (uint32_t size)</td></tr>
<tr class="separator:a94fdaa660b2939675dcb2d3706ce3b23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9968edb4e9fb09e04eb4ee8b86106ea2"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a9968edb4e9fb09e04eb4ee8b86106ea2">SetAnchor</a> (const char *anchor_x, const char *anchor_y)</td></tr>
<tr class="separator:a9968edb4e9fb09e04eb4ee8b86106ea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a500069b2fb7ebf2c7ed3ee3f6ae42b3a"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a500069b2fb7ebf2c7ed3ee3f6ae42b3a">SetIndicatedTarget</a> (const char *indicated_target)</td></tr>
<tr class="separator:a500069b2fb7ebf2c7ed3ee3f6ae42b3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90a90a5a7ddfb63372ad9ddae4bf11e2"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a90a90a5a7ddfb63372ad9ddae4bf11e2">GetValue</a> () const</td></tr>
<tr class="separator:a90a90a5a7ddfb63372ad9ddae4bf11e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a976b52a78acf4cb7f844bdf1234effd9"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a976b52a78acf4cb7f844bdf1234effd9">GetMax</a> () const</td></tr>
<tr class="separator:a976b52a78acf4cb7f844bdf1234effd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34af7d36b61ad25a1fcf3ab12bc26134"><td class="memItemLeft" align="right" valign="top">indicator_default_paint_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a34af7d36b61ad25a1fcf3ab12bc26134">GetDefaultPaint</a> () const</td></tr>
<tr class="separator:a34af7d36b61ad25a1fcf3ab12bc26134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35d3c822c1bd6c37476a6c5b4e81705b"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a35d3c822c1bd6c37476a6c5b4e81705b">GetAutoHide</a> () const</td></tr>
<tr class="separator:a35d3c822c1bd6c37476a6c5b4e81705b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6722bdb2f34652a7989b0f6eca87b68f"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a6722bdb2f34652a7989b0f6eca87b68f">GetMargin</a> () const</td></tr>
<tr class="separator:a6722bdb2f34652a7989b0f6eca87b68f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45b7850bba606dde5e1955686a080a24"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a45b7850bba606dde5e1955686a080a24">GetSpacing</a> () const</td></tr>
<tr class="separator:a45b7850bba606dde5e1955686a080a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7b4ee691620ff95860a4ea907f11a15"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#ae7b4ee691620ff95860a4ea907f11a15">GetSize</a> () const</td></tr>
<tr class="separator:ae7b4ee691620ff95860a4ea907f11a15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3270b512f606e496af5dba166c61b3d"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#af3270b512f606e496af5dba166c61b3d">GetAnchorX</a> () const</td></tr>
<tr class="separator:af3270b512f606e496af5dba166c61b3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f4ad88cd4f16ff8924c64c02d998b7c"><td class="memItemLeft" align="right" valign="top">float_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a1f4ad88cd4f16ff8924c64c02d998b7c">GetAnchorY</a> () const</td></tr>
<tr class="separator:a1f4ad88cd4f16ff8924c64c02d998b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f16a2151e502e3a3d93cdce2f0255a0"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#a6f16a2151e502e3a3d93cdce2f0255a0">GetIndicatedTarget</a> () const</td></tr>
<tr class="separator:a6f16a2151e502e3a3d93cdce2f0255a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ae944de5ebdc09090f55d0accb2679dad"><td class="memItemLeft" align="right" valign="top"><a id="ae944de5ebdc09090f55d0accb2679dad"></a>
static <a class="el" href="class_t_slide_indicator.html">TSlideIndicator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (widget_t *nativeObj)</td></tr>
<tr class="separator:ae944de5ebdc09090f55d0accb2679dad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b7e18ab85de858bc8f7a7126c3a7db1"><td class="memItemLeft" align="right" valign="top"><a id="a4b7e18ab85de858bc8f7a7126c3a7db1"></a>
static <a class="el" href="class_t_slide_indicator.html">TSlideIndicator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const widget_t *nativeObj)</td></tr>
<tr class="separator:a4b7e18ab85de858bc8f7a7126c3a7db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad89aa8bf9371c3a458698a8d288126a7"><td class="memItemLeft" align="right" valign="top"><a id="ad89aa8bf9371c3a458698a8d288126a7"></a>
static <a class="el" href="class_t_slide_indicator.html">TSlideIndicator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (TWidget &amp;obj)</td></tr>
<tr class="separator:ad89aa8bf9371c3a458698a8d288126a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8398c9166da210591fc737b2f1eda492"><td class="memItemLeft" align="right" valign="top"><a id="a8398c9166da210591fc737b2f1eda492"></a>
static <a class="el" href="class_t_slide_indicator.html">TSlideIndicator</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const TWidget &amp;obj)</td></tr>
<tr class="separator:a8398c9166da210591fc737b2f1eda492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab77bdc0fa759ccccdd01fca48e4b2dd5"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#ab77bdc0fa759ccccdd01fca48e4b2dd5">Create</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:ab77bdc0fa759ccccdd01fca48e4b2dd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae278bea76aa346f68ae147d108d96c9c"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#ae278bea76aa346f68ae147d108d96c9c">CreateLinear</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:ae278bea76aa346f68ae147d108d96c9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1c666771a7f172b14bea16e48ac6a23"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_slide_indicator.html#ab1c666771a7f172b14bea16e48ac6a23">CreateArc</a> (TWidget &amp;parent, xy_t x, xy_t y, wh_t w, wh_t h)</td></tr>
<tr class="separator:ab1c666771a7f172b14bea16e48ac6a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>slide_view的指示器控件。</p>
<blockquote class="doxtable">
<p>支持直线、弧线排布，默认有4种绘制样式，若设置了icon/active_icon，则优先使用icon/active_icon </p>
</blockquote>
<p>slide_indicator_t是widget\_t的子类控件，widget_t的函数均适用于slide_indicator_t控件。</p>
<p>在xml中使用"slide\_indicator"或"slide\_indicator\_arc"标签创建指示器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">slide_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*...</div>
<div class="line">*&lt;/<span class="keywordtype">slide_view</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">slide_indicator</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;indicator&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;6&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[slide_view.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/slide_view.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/slide_view.xml</a>)</p>
<p>在c代码中使用函数slide_indicator_create创建指示器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">fg_color</span>=<span class="stringliteral">&quot;#FFFFFF80&quot;</span> <span class="keyword">selected_fg_color</span>=<span class="stringliteral">&quot;#FFFFFF&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[theme default]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L350">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L350</a>) </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ab77bdc0fa759ccccdd01fca48e4b2dd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab77bdc0fa759ccccdd01fca48e4b2dd5">&#9670;&nbsp;</a></span>Create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TSlideIndicator::Create </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_indicator对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ab1c666771a7f172b14bea16e48ac6a23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1c666771a7f172b14bea16e48ac6a23">&#9670;&nbsp;</a></span>CreateArc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TSlideIndicator::CreateArc </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_indicator对象（圆弧显示）</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="ae278bea76aa346f68ae147d108d96c9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae278bea76aa346f68ae147d108d96c9c">&#9670;&nbsp;</a></span>CreateLinear()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TWidget TSlideIndicator::CreateLinear </td>
          <td>(</td>
          <td class="paramtype">TWidget &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xy_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wh_t&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建slide_indicator对象（线性显示）</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="af3270b512f606e496af5dba166c61b3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3270b512f606e496af5dba166c61b3d">&#9670;&nbsp;</a></span>GetAnchorX()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TSlideIndicator::GetAnchorX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>锚点x坐标。 </p>

</div>
</div>
<a id="a1f4ad88cd4f16ff8924c64c02d998b7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f4ad88cd4f16ff8924c64c02d998b7c">&#9670;&nbsp;</a></span>GetAnchorY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TSlideIndicator::GetAnchorY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>锚点y坐标。 </p>

</div>
</div>
<a id="a35d3c822c1bd6c37476a6c5b4e81705b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35d3c822c1bd6c37476a6c5b4e81705b">&#9670;&nbsp;</a></span>GetAutoHide()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TSlideIndicator::GetAutoHide </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>自动隐藏。0表示禁止，非0表示无操作后延迟多久隐藏。 </p>

</div>
</div>
<a id="a34af7d36b61ad25a1fcf3ab12bc26134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34af7d36b61ad25a1fcf3ab12bc26134">&#9670;&nbsp;</a></span>GetDefaultPaint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">indicator_default_paint_t TSlideIndicator::GetDefaultPaint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>指示器的类型。 </p>

</div>
</div>
<a id="a6f16a2151e502e3a3d93cdce2f0255a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f16a2151e502e3a3d93cdce2f0255a0">&#9670;&nbsp;</a></span>GetIndicatedTarget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char * TSlideIndicator::GetIndicatedTarget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>指示器指示的目标。 </p>

</div>
</div>
<a id="a6722bdb2f34652a7989b0f6eca87b68f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6722bdb2f34652a7989b0f6eca87b68f">&#9670;&nbsp;</a></span>GetMargin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TSlideIndicator::GetMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>指示器与边缘的边距。 </p>

</div>
</div>
<a id="a976b52a78acf4cb7f844bdf1234effd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a976b52a78acf4cb7f844bdf1234effd9">&#9670;&nbsp;</a></span>GetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlideIndicator::GetMax </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大值(缺省为100)。 </p>

</div>
</div>
<a id="ae7b4ee691620ff95860a4ea907f11a15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7b4ee691620ff95860a4ea907f11a15">&#9670;&nbsp;</a></span>GetSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlideIndicator::GetSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>指示器的大小。 </p>

</div>
</div>
<a id="a45b7850bba606dde5e1955686a080a24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45b7850bba606dde5e1955686a080a24">&#9670;&nbsp;</a></span>GetSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float_t TSlideIndicator::GetSpacing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>指示器的中心之间的间距（圆弧显示时，间距的单位为弧度，否则为像素）。 </p>

</div>
</div>
<a id="a90a90a5a7ddfb63372ad9ddae4bf11e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90a90a5a7ddfb63372ad9ddae4bf11e2">&#9670;&nbsp;</a></span>GetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TSlideIndicator::GetValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>值(缺省为0)。 </p>

</div>
</div>
<a id="a9968edb4e9fb09e04eb4ee8b86106ea2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9968edb4e9fb09e04eb4ee8b86106ea2">&#9670;&nbsp;</a></span>SetAnchor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetAnchor </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>anchor_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置旋转锚点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">anchor_x</td><td>锚点坐标x。(后面加上px为像素点，不加px为相对百分比坐标) </td></tr>
    <tr><td class="paramname">anchor_y</td><td>锚点坐标y。(后面加上px为像素点，不加px为相对百分比坐标)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a540384bf6fa666c0c34f7cd0048763a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a540384bf6fa666c0c34f7cd0048763a2">&#9670;&nbsp;</a></span>SetAutoHide()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetAutoHide </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>auto_hide</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器是否自动隐藏。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_hide</td><td>0表示禁止，非0表示无操作后延迟多久隐藏。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab99815b7d41d04095a77af7218a8c83c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab99815b7d41d04095a77af7218a8c83c">&#9670;&nbsp;</a></span>SetDefaultPaint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetDefaultPaint </td>
          <td>(</td>
          <td class="paramtype">indicator_default_paint_t&#160;</td>
          <td class="paramname"><em>default_paint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器的默认绘制类型。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">default_paint</td><td>默认绘制类型。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a500069b2fb7ebf2c7ed3ee3f6ae42b3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a500069b2fb7ebf2c7ed3ee3f6ae42b3a">&#9670;&nbsp;</a></span>SetIndicatedTarget()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetIndicatedTarget </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>indicated_target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器指示的目标。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">indicated_target</td><td>指示器指示的目标</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a24936855ee6566548705893f3b8a649b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24936855ee6566548705893f3b8a649b">&#9670;&nbsp;</a></span>SetMargin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetMargin </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>margin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器的边距(默认为10像素)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">margin</td><td>指示器的边距。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2baf5eb52b7fd56168ab40d811d7180d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2baf5eb52b7fd56168ab40d811d7180d">&#9670;&nbsp;</a></span>SetMax()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetMax </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>max</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器的数量。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max</td><td>数量。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a94fdaa660b2939675dcb2d3706ce3b23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94fdaa660b2939675dcb2d3706ce3b23">&#9670;&nbsp;</a></span>SetSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetSize </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器的大小(默认为8)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>指示器的大小。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a90a115cc8452e2d1e15c16850048d346"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90a115cc8452e2d1e15c16850048d346">&#9670;&nbsp;</a></span>SetSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetSpacing </td>
          <td>(</td>
          <td class="paramtype">float_t&#160;</td>
          <td class="paramname"><em>spacing</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置指示器的间距(指示器有弧度时为角度值，否则为直线间距)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">spacing</td><td>指示器的间距。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4de03b7ea656a0f725a0925202dc4dd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4de03b7ea656a0f725a0925202dc4dd8">&#9670;&nbsp;</a></span>SetValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TSlideIndicator::SetValue </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置当前页的序号。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>当前项的序号。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
